package com.wnxy.sddfp.trade.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 机构投标记录
 * </p>
 *
 * @author 作者
 * @since 2023-08-11
 */
@Getter
@Setter
@ApiModel(value = "AgencyBid对象", description = "机构投标记录")
public class AgencyBid implements Serializable {

    private static final long serialVersionUID = 1L;

    // 指定主键字段：ID
    @ApiModelProperty("主键")
    @TableId("ID")
    private Long id;

    // 必须手动指定分库的数据库字段名称：USER_ID
    @ApiModelProperty("投标人/机构用户标识")
    @TableField("USER_ID")
    private Long userId;

    // 必须手动指定分表的数据库字段名称：BORROW_RECORD_ID
    @ApiModelProperty("借款项目标识")
    @TableField("BORROW_RECORD_ID")
    private Long borrowRecordId;

    @ApiModelProperty("投标人/机构名称")
    private String name;

    @ApiModelProperty("投标人用户编码")
    private String userCode;

    @ApiModelProperty("投标金额")
    private BigDecimal amount;

    @ApiModelProperty("机构申购状态：FROZEN已冻结、LOAN已放款、PAYBACK已退款")
    private String bidStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("流水号")
    private String reqCode;

    @ApiModelProperty("可用状态")
    private Integer status;

    @ApiModelProperty("借款项目编码-冗余字段")
    private String borrowRecordNo;

    @ApiModelProperty("借款项目名称-冗余字段")
    private String borrowRecordName;

    @ApiModelProperty("借款项目的期限-冗余字段")
    private Integer borrowRecordPeriod;

    @ApiModelProperty("投资年化利率-冗余字段")
    private BigDecimal investRate;


}
